<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@page import="com.yy.base.util.UserUtil"%>
<%
if (session.getAttribute(UserUtil.USERSESSION) != null) {
	response.sendRedirect(request.getContextPath() + "/index.jsp");
	return;
}
%>
<!DOCTYPE html>
<html lang="en">
<head>
	<title>PDA</title>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="MES" />
    <meta name="description" content="MES" />
	<meta name="renderer" content="webkit"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
	<link rel="Shortcut Icon" href="/favicon.ico" />
	<!-- load css -->
	<link rel="stylesheet" type="text/css" href="script/js/layui/css/layui.css" media="all"/>
	<link rel="stylesheet" type="text/css" href="script/css/login_black.css" media="all"/>
</head>
<body>
<div class="larry-canvas" id="canvas"></div>
<div class="layui-layout layui-layout-login">
	<h1>
		 <strong>MES</strong>
		 <em>生产制造执行系统</em>
	</h1>
	<div class="layui-user-icon larry-login">
		 <input type="text" placeholder="用户名" id="userCode" class="login_txtbx" onkeypress="if (event.keyCode == 13) {enterLogin();return false;}"/>
	</div>
	<div class="layui-pwd-icon larry-login">
		 <input type="password" placeholder="密码" id="password" class="login_txtbx" onkeypress="if (event.keyCode == 13) {enterLogin();return false;}"/>
	</div>
    <div class="layui-submit larry-login">
    	<input type="button" value="立即登陆" class="submit_btn"/>
    </div>
    <div style="height: 50px;margin-top: 20px;">
		<div id="mssage"></div>
	<div>
</div>
<script type="text/javascript" src="script/js/layui/layui.js"></script>
<script type="text/javascript" src="script/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="script/js/jsplugin/jparticle.jquery.js"></script>
<script type="text/javascript" src="script/index/login.js"></script>
</body>
<script type="text/javascript">
if (top.window.location.href != window.location.href) {
	top.window.location.href = window.location.href;
}
<%
String user = request.getParameter("user");
String password = request.getParameter("password");
if (user != null && password != null) {
%>
	document.getElementById("userCode").value = "<%=user %>";
	document.getElementById("password").value = "<%=password %>";
	enterLogin();
<%
}
%>

</script>
</html>